import os

def calculator_dir_size(dir):
    dlist = os.listdir(dir)
    sumSize = 0
    for file in dlist:
        fullPath = os.path.join(dir, file)
        if os.path.isfile(fullPath):
            fileSize = os.path.getsize(fullPath)
            print(fullPath, ":", fileSize)
            sumSize = sumSize + fileSize
        if os.path.isdir(fullPath):
            fileSize = calculator_dir_size(fullPath)
            sumSize  = sumSize + fileSize
    return sumSize

file_size = calculator_dir_size('./news')
print(file_size)